
import IndexRouter from './router/idnex'
import React, { Component } from 'react'
import store from './redux/store'

export default class app extends Component {
  state={
    isShow:true
  }
  componentDidMount(): void {
    store.subscribe(()=>{
      console.log(store.getState());
     this.setState({
      isShow:store.getState().isShow 
     })
    })
  }
  render() {
    return (
      <div>
    { this.state.isShow&&  <ul>
        <li>电影</li>
        <li>影院</li>
        <li>我的</li>
      </ul>}
      <IndexRouter></IndexRouter>
    </div>
    )
  }
}

